<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>right</title>
<link href="__PUBLIC__/Admin/css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="__PUBLIC__/Admin/js/jquery.js"></script>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/Admin/css/jquery.datepick.css" />
<script type="text/javascript" src="__PUBLIC__/Admin/js/jquery.datepick.js"></script>

<script charset="utf-8" src="__PUBLIC__/kindeditor/kindeditor.js"></script>

</head>
<script type="text/javascript">
	function updates(n){
	var fun = "u";
		$.ajax({
			async:false,
			type:"POST",
			url:"__APP__/Nav/flists",
			data:"f_id="+n+"&fun="+fun,
			success:function(msg){
				$("#container").html(msg);
					
			}
		});
	}

	function deletes(n){
		var fun = "del";
		alert(n);
		$.ajax({
			async:false,
			type:"POST",
			url:"__APP__/Nav/flists",
			data:"f_id="+n+"&fun="+fun,
			success:function(msg){
				if(msg=="1"){
					$("#obj_"+n).hide();
				}else{
					alert("删除失败");
				}
					
			}
		});
	}
</script>


<body>

<div id="container">
  <div id="main"> 
    <div id="content"> 
      <div class="weizhi"><span>当前位置：修改导航</span></div>
      <br />
			<table border="1">
				<tr>
					<td>友情链接名</td>
					<td>友情链接位置</td>
					<td>链接地址</td>
					<td>操作</td>
				</tr>
				<volist name="furl" id="vo">
				<tr id="obj_<{$vo.f_id}>">
					<td><{$vo.f_name}></td>
					<td><{$vo.f_sate}></td>
					<td><{$vo.f_url}></td>
					<td><a href="#" onclick="updates(<{$vo.f_id}>)">修改</a>/<a href="#" onclick="deletes(<{$vo.f_id}>)">删除</a></td>
				</tr>
				</volist>
			</table>
		        
		        
		        </div>
		        </div>
</div>
</body>